<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search Header</title>
<script type="text/javascript">
var timer;
function callDetail()
{
	
	var arg= "/SolrQMSApplication/SearchServlet?SearchValue=*"+document.getElementById("SearchValue").value+"*&pageNo=0";
	document.getElementById("detail").src = arg;
//	timer= setInterval(function(){loadTimer()},1000);
}

function callFilter()
{
	var filterJsp="SearchFilter.jsp";
	document.getElementById("filterPane").src = filterJsp;
}

function loadTimer()
{
	var pageload =(document.getElementById("detail").contentDocument.getElementsByTagName('body')[0]).innerHTML;
	if(pageload == null || pageload == "")
	{
	}
	else
	{
		clearInterval(timer);
		callFilter();
	}
}
</script>
<link type="text/css"  rel ="stylesheet"  href="/SolrQMSApplication/css/SolrQms.css">
</head>
<body bgcolor="#ECF1F1" >
<div id="header">
<input type="text" name="SearchValue" id ="SearchValue" />
<input type="button" value="Search"  onclick="callDetail()">
</div>
<iframe name ="detail" id ="detail" frameborder="0" scrolling="auto">
</iframe>
<script type="text/javascript">

</script>
</body>
</html>
